#ifndef ASTEROID_H
#define ASTEROID_H
#include "ship.h"
#include "blackhole.h"
#include "global.h"

class ship;
class blackhole;

class asteroid {

    private:
        int x, y;
        float xtheta;
        float ytheta;
        float distance;
        float speed;
        int initpower, power, size;
        bool exists;
        int powerup;

    public:
        asteroid();
        ~asteroid();
        void refresh();
        void move(ship*, blackhole*);
        void draw(BITMAP*);
//SETTERS and GETTERS
        void set_x(int x) {x = x;}
        int get_x() { return x; }
        void set_y(int y) { y = y; }
        int get_y() { return y; }

        void set_speed(int s) { speed = s; }
        float get_speed() { return speed; }

        void set_xtheta (float xt) {xtheta = xt;}
        float get_xtheta(){ return xtheta; }
        void set_ytheta (float yt) {ytheta = yt;}
        float get_ytheta(){ return ytheta; }

        void set_distance (float d) {distance = d;}
        float get_distance(){ return distance; }
        bool get_exists() { return exists; }
        void set_size(int s) { size = s; }
        int get_size() { return size; }
        void set_power(int p) { power = p; }
        int get_power() { return power; }
        int get_initpower() {return initpower; }
        void set_powerup(int p){ powerup = p; }
        int get_powerup() { return powerup; }
};
#endif
